export default{
  namespaced:true,
  state:{
    token:uni.getStorageSync('token')||'',
    userData:uni.getStorageSync('userData')||[],
    jumpType:null
  },
  
  mutations:{
    saveUserData(state){
      uni.setStorageSync('userData',state.userData)
    },
    updataUserData(state,userData){
      state.userData=userData
      this.commit('m_user/saveUserData')
    },
    saveToken(state){
      uni.setStorageSync('token',state.token)
    },
    updataToken(state,token){
      state.token=token
      this.commit('m_user/saveToken')
    },
    saveType(state){
      uni.setStorageSync('jumpType',state.jumpType)
    },
    updataType(state,jumpType){
      state.jumpType=jumpType
      this.commit('m_user/saveType')
    }
  },
  getters:{
    
  }
}